package webService

import (
	"huayan.com/src/webService/UserController"
	"log"
	"net/http"
)

const point = ":9090"

//开启web服务
func WebServerStart(){
	loadAllPath()

	err := http.ListenAndServe(point, nil)
	if err != nil{
		log.Fatal("ListenAndServe: ", err)
	}
}

//加载所有路由
func loadAllPath(){
	UserController.LoadUserController()
}
